package com.smart.manager.system.entities.views;

import com.smart.common.entities.core.BaseView;
import io.ebean.annotation.View;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author xiaxuqiu
 */
@Data
@Entity
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@View(name = "system_schedule_task", dependentTables = "system_schedule_task")
public class TaskView extends BaseView {

    /**
     * 任务编号
     */

    @Id
    @ApiModelProperty("任务编号")
    Long id;
    /**
     * 任务标题
     */
    @ApiModelProperty("任务标题")
    private String title;
    /**
     * 任务参数
     */
    @ApiModelProperty("任务参数")
    private String params;
    /**
     * 任务备注
     */
    @ApiModelProperty("任务备注")
    private String remark;

    public TaskView(Long id) {
        this.id = id;
    }

}